<!-- Show Notification -->
<g:set var="title" value="Notification for&nbsp;${notification.company}" />
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main" />
  <title>${title}</title>
</head>
<body>
  <div class="body">
    <h1>${title}</h1>
    <g:render template="/common/flashMessage" />
    <div class="dialog">
      <table><tbody>
        <tr class="prop">
          <td valign="top" class="name">Representative:</td>
          <td valign="top" class="value"><g:link controller="person" action="showRep" id="${notification?.rep?.id}">${notification?.rep?.encodeAsHTML()}</g:link></td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">Company Contact:</td>
          <td valign="top" class="value"><g:link controller="person" action="show" id="${notification?.contact?.id}">${notification?.contact?.encodeAsHTML()}</g:link></td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">Type:</td>
          <td valign="top" class="value">${notification?.type?.encodeAsHTML()}</td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">Notification Date:</td>
          <td valign="top" class="value">${new java.text.SimpleDateFormat("MM/dd/yyyy hh:mm").format(notification.date)}</td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">Reason:</td>
          <td valign="top" class="value">${fieldValue(bean:notification, field:'reason')}</td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">Notes:</td>
          <td valign="top" class="value">${fieldValue(bean:notification, field:'notes')}</td>
        </tr>
      </tbody></table>
    </div>
    <tdcmw:submitFormButton action="save" label="Save" />
    <tdcmw:linkButton controller="company" action="show" params="[id:notification.company.id]" label="Show Company" />
    <tdcmw:linkButton action="notifyNow" params="[id:notification.id, returnAction:'show']" label="Notify Now" />
    <tdcmw:linkButton action="edit" params="[id:notification.id]" label="Edit" />
    <tdcmw:linkButton action="delete" params="[id:notification.id]" label="Delete" confirm="Are you sure you want to delete this notification?" />
  </div>
</body>
